package simpleFactory.pizza;

/**
 * @author : DuJiabao
 * @Date : 2021/3/1 19:58
 * @Project : design-pattern
 * @File : null.java
 * @Desc :
 */
public abstract class Pizza {
  protected String name;

  public Pizza() {
  }

  public Pizza(String name) {
    this.name = name;
  }

  public abstract void prepare();

  public void bake() {
    System.out.println("烘焙" + name + "披萨");
  }

  public void cut() {
    System.out.println("切割" + name + "披萨");
  }

  public void box() {
    System.out.println("打包" + name + "披萨");
  }
}
